package com.aier.user.entity;

import java.sql.Timestamp;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * 评语实体
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "appraise", catalog = "abc")
public class Appraise implements java.io.Serializable {

    // 标志
    private Long apid;
    // 教师id
    private Long tid;
    // 学生用户id
    private Long buid;
    // 班级id
    private Long cid;
    // 内容
    private String content;
    // 时间
    private Timestamp cdate;
    
    // 教师姓名
    private String tname;
    // 学生姓名
    private String bname;
    // 回复列表
    private List<AppraiseComment> acList;
    // 头像
    private String headimg;
    
    // 短信发送成功和失败的用户名
    private String successStr;
    private String failStr;

    /** default constructor */
    public Appraise() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "apid", unique = true, nullable = false)
    public Long getApid() {
        return apid;
    }

    public void setApid(Long apid) {
        this.apid = apid;
    }
    @Column(name = "tid", nullable = false, length = Constant.num_20)
    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }
    @Column(name = "buid", nullable = false, length = Constant.num_20)
    public Long getBuid() {
        return buid;
    }

    public void setBuid(Long buid) {
        this.buid = buid;
    }
    @Column(name = "cid", nullable = false, length = Constant.num_20)
    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }
    
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public List<AppraiseComment> getAcList() {
        return acList;
    }

    public void setAcList(List<AppraiseComment> acList) {
        this.acList = acList;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getSuccessStr() {
        return successStr;
    }

    public void setSuccessStr(String successStr) {
        this.successStr = successStr;
    }

    public String getFailStr() {
        return failStr;
    }

    public void setFailStr(String failStr) {
        this.failStr = failStr;
    }

}